﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.NetworkInformation;

namespace WGM_Client_Net35V2.HelperClasses
{
    public static class NetworkManager
    {
        public static string GetMacAddress()
        {
            foreach (NetworkInterface nif in NetworkInterface.GetAllNetworkInterfaces())
            {
                if (nif.OperationalStatus == OperationalStatus.Up)
                {
                    return nif.GetPhysicalAddress().ToString();
                }
            }
            return "";
        }
    }
}
